apiready = function () {
  api.parseTapmode();
  FastClick.attach(document.body);
  var header = $api.byId('aui-header');
  $api.fixStatusBar(header);
  var pageUpdateUser = new Vue({
      el: '#pageUpdateUser',
      data: {
        user_info:{}
      },
      created: function() {
        this.getUserInfo();
      },
     methods: {
       getUserInfo:function(){
       var that = this;
       app.get("api/user/info",{
         fields:'name,store.store_name'
       }, function (res) {
         if (res.code != 200) {
           app.alert(res.msg);
           return;
         }
         that.user_info = res.data;

       });
      },
        saveUserInfo:function(){
          var post={};
          //手机号登陆
          $("#saveUserInfo").addClass("disabled");
          post.store_name = $("#store_name").val();
          post.name = $("#name").val();
          app.post("apiv2/store/save",post,function(res){
             if(res.code!=200){
                app.alert(res.msg);
                return ;
             }
             app.setUserInfo(res.data);
             app.alert("保存成功");

          });
        }

     }
  })
}
